package com.ljw.util;

import java.util.Date;
import java.util.UUID;

/**
 * @author lijunwei
 * @date 2025/5/21
 */
public class RewardCodeGenerator {
    /**
     * 生成编码
     * @param sceneTypeEnum 场景
     * @return code
     */
    public static String  generatorCode(SceneTypeEnum sceneTypeEnum) {
        Date date = new Date();
        String s = RuleDateUtil.timeToStringByFormat(date, RuleDateUtil.spanTimeString);
        String sceneCode = sceneTypeEnum.getSceneCode();
        return sceneCode + s;
    }

    public static String generatorUuid(){
        return UUID.randomUUID().toString().replace("-","");
    }


}